package com.mindskip.xzs.service;


import com.github.pagehelper.PageInfo;
import com.mindskip.xzs.domain.VideoUser;
import com.mindskip.xzs.viewmodel.admin.education.VideoPageRequestVM;
import com.mindskip.xzs.viewmodel.admin.education.VideoUserPageRequestVM;

import java.util.List;

/**
 * @author changjiang
 * @Title:
 * @Package
 * @Description: 视频
 * @date 2022/1/209:23 下午
 */


public interface VideoUserService extends BaseService<VideoUser> {

    /**
     *  获取视频进度列表
     * @param videoUser
     * @return
     */
    List<VideoUser> getVideoUserList(VideoUser videoUser);

    /**
     * 根据用户ID和视频id获取信息
     * @param videoUser
     * @return
     */
    VideoUser getForUserIdAndVideoId(VideoUser videoUser);


    /**
     * 获取进度列表分页
     * @param videoUser
     * @return
     */

    PageInfo<VideoUser> getVideoUserListPage(VideoUserPageRequestVM videoUser);

    /**
     * 统计用户时间
     * @param videoUser
     * @return
     */
    int countTime(VideoUser videoUser);


    /**
     * 统计用户学习的视频总时间
     * @param videoUser
     * @return
     */
    int countTimeVideo(VideoUser videoUser);

    int deleteByPrimaryKey(Long id);


    int insertSelective(VideoUser videoUser);

    int updateByPrimaryKeySelective(VideoUser videoUser);

    int updateByPrimaryKey(VideoUser videoUser);


    List<VideoUser> getVideoUserListForUid (VideoUser videoUser);





}
